const express = require('express');

const router = express.Router();

const wallpaperService = require('../routerHandler/wallpaperService');

router.get('/wallpapers', wallpaperService.wallpapers);
router.get('/wallpapers/category', wallpaperService.dataListByCateId);
router.get('/wallpapers/:imageCode', wallpaperService.imageDetail);

router.get('/list', wallpaperService.wallpapers);
router.get('/detail/:imageCode', wallpaperService.imageDetail);
router.get('/list-by-cate', wallpaperService.dataListByCateId);
router.get('/password', wallpaperService.entryPassword);
router.post('/add-count', wallpaperService.addCount);

module.exports = router;